package com.example.smartmedicalsystem.repository;

import com.example.smartmedicalsystem.entity.MedicalRecord;
import com.example.smartmedicalsystem.entity.Appointment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface MedicalRecordRepository extends JpaRepository<MedicalRecord, Long> {
    MedicalRecord findByAppointment(Appointment appointment);
}
